import express from 'express';
const router = express.Router();
import User from "../controller/v1/user";

const user = new User();

// 用户登录完成相关接口
router.all('*', async function (req,res, next) {
  const json = await user.verify_jwt(req.headers.token)
  console.log(json)
  if(json.status !== 200) {
    res.send(json)
  } else {
    next()
  }
})



export default router
